import {request} from '../request.js' //导入封装好的js文件
 
// 获取鱼汛列表
export const get_fish_new = (data)=>{
  return request({
    url:'/fish_new/',
    method:'get',
    data
  })
}
export const get_fish_new_id = (id)=>{
  return request({
    url:`/fish_new/${id}/`,
    method:'get',
  })
}
export const query_fish_news = (data)=>{
  return request({
    url:'/query_fish_news/',
    method:'get',
    data
  })
}

// 添加鱼汛
export const add_fish_news = (data)=>{
  return request({
    url:'/add_fish_news/',
    method:'post',
    data:data
  })
}
// 获取游戏方法 GET 
export const get_play_method = (data)=>{
  return request({
    url:'/get_play_method/',
    method:'get',
    data
  })
}
// 获取主要鱼种
export const get_main_fish = (data)=>{
  return request({
    url:'/get_main_fish/',
    method:'get',
    data
  })
}
// 获取钓位状态
export const get_fish_position_status = (data)=>{
  return request({
    url:'/get_fish_position_status/',
    method:'get',
    data
  })
}

// 修改鱼汛
export const update_fish_news = (data, id)=>{
  return request({
    url:'/update_fish_news/'+id+ '/',
    method:'put',
    data
  })
}
// 鱼汛售票订单
export const get_ticket_order = (data)=>{
  return request({
    url:'/get_ticket_order/',
    method:'get',
    data
  })
}
// 退票申请通知
export const post_refund_ticket = (data)=>{
  return request({
    url:'/post_refund_ticket/',
    method:'post',
    data:data
  })
}

// 售票场次选择
export const get_session_order = (data)=>{
  return request({
    url:'/get_session_order/',
    method:'get',
    data
  })
}
// 售票记录
export const get_history_order = (data)=>{
  return request({
    url:'/get_history_order/',
    method:'get',
    data
  })
}
// 结账
export const get_settle_accounts = (data)=>{
  return request({
    url:'/get_settle_accounts/',
    method:'get',
    data
  })
}
// 立即结账
// 结账
export const get_submit_details = (data)=>{
  return request({
    url:'/get_post_close/',
    method:'get',
    data
  })
}
export const post_submit_details = (data)=>{
  return request({
    url:'/get_post_close/',
    method:'post',
    data:data
  })
}
// 控制中心
export const control_center = (data)=>{
  return request({
    url:'/control_center/',
    method:'get',
    data
  })
}
export const put_control_center = (data,id)=>{
  return request({
    url:'/control_center/'+id+"/",
    method:'put',
    data:data
  })
}